﻿<%@ Page Title="查看方案" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Default.master" AutoEventWireup="true" CodeFile="view_scheme.aspx.cs" Inherits="view_scheme" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
        function boutlines(thisObj, Num) {
            if (thisObj.className == "active") return;
            var ApplyObj = thisObj.parentNode.id;
            var ApplyList = document.getElementById(ApplyObj).getElementsByTagName("li");
            for (i = 0; i < ApplyList.length; i++) {
                if (i == Num) {
                    thisObj.className = "active";
                    document.getElementById(ApplyObj + "_Content" + i).style.display = "block";
                } else {
                    ApplyList[i].className = "normal";
                    document.getElementById(ApplyObj + "_Content" + i).style.display = "none";
                }
            }
        }
    </script>
    <style>
    
.cy_bcokk h5 {
    color: #4c4c4c;
    float: left;
    font-family: Microsoft YaHei;
    font-size: 12px;
    font-weight: normal;
    height: 40px;
    line-height: 40px;
    padding: 0 20px 0 10px;
    text-align: left;
    width: 145px;
}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="blank20">&nbsp;</div>
    <div class="cy_box">
        <div class="cy_vbox">
            <div class="cy_vc1">
                <div class="cy_vc1_img1">
                <%if (model != null)
                  {
                      if (model.LotteryType == 1)
                      {%>   
                    <img src="images/cy_ssq.png" width="88" height="88" />
                <%}
                      else if (model.LotteryType ==2)
                      {%>
                       <img src="images/q2.jpg" width="88" height="88" />
                <%}
                      else if (model.LotteryType ==5)
                      {%>
                       <img src="images/q3.jpg" width="88" height="88" />
                      <%}
                  }%>
                </div>
                <h3><%if(model!=null) {%>   
                <%=model.LotteryType == 1 ? "双色球" : (model.LotteryType == 2 ? "大乐透" : (model.LotteryType == 3 ? "排列三" : (model.LotteryType == 4 ? "排列五" : (model.LotteryType == 5 ? "福彩3D" : (model.LotteryType == 6 ? "七星彩" : (model.LotteryType == 7 ? "七乐彩" : "暂未说明"))))))%>
                <%} %>
                第<%=model!=null?model.LotteryOpenTime:""%>期    合买方案 </h3>
                <h4>方案编号：<%=model!=null?model.LotteryOpenTime:""%></h4>
            </div>
            <div class="cy_vc2">
                <div class="cy_vc2_type">
                    <div class="cy_vc2_cokk">
                        <div class="cy_vc2_cokk_txt1">
                            <h3>
                                <img src="images/cy_fqr.jpg" alt="发起人" width="52" height="18" /></h3>
                            <h4><%=select(model != null ? model.UserID : 0)%></h4>
                            <ul>
                               <%-- <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>
                                <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>
                                <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>
                                <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>
                                <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>
                                <li>
                                    <img src="images/cy_hg.gif" width="15" height="15" /></li>--%>
                            </ul>
                            <%--<a href="##">定制</a>--%><br />
                            <h5>“一直坚持买彩票 为了生活更完美”</h5>
                        </div>
                        <div class="cy_vc2_cokk_txt2">
                            <ul>
                                <li style="border: none;">
                                    <h3>
                                        <img src="images/cy_05.gif" width="14" height="14" />发起时间</h3>
                                   <%=model!=null?model.AddTime.ToString("MM-dd hh:mm"):""%></li>
                                <li>
                                    <h3>
                                        <img src="images/cy_06.gif" width="14" height="14" />预计开奖</h3>
                                    <%=model!=null?model.AddTime.ToString("MM-dd hh:mm"):""%></li>
                                <li>
                                    <h3>
                                        <img src="images/cy_07.gif" width="14" height="14" />预计派奖</h3>
                                    <%=model!=null?model.AddTime.ToString("MM-dd hh:mm"):""%></li>
                            </ul>
                        </div>
                    </div>
                    <div class="cy_vc2_con1">
                        <div class="cy_vc2_con1_con">
                            <h3>合买进度：</h3>
                            <h4><span style="width: <%=model!=null?model.LotteryJD:0%>%;">  </span></h4>
                            <h3><%=model!=null?model.LotteryJD:0%>%</h3>
                            <h5>全保</h5>
                            <div class="clear"></div>
                            <h3>方案金额：<%=model!=null?model.LotteryMoney:0%> 元</h3>
                            <div class="clear"></div>
                            <h3>剩余金额：<font style="color: #f90000;"><%=model!=null?model.LotteryYE:0%></font> 元</h3>
                            <div class="clear"></div>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/cy_09.gif" CssClass="cy_inp2"></asp:ImageButton>
                        </div>
                        <div class="cy_vc2_con2">
                            <h3>当前状态：<font><%=Convert.ToBoolean(model != null ? model.State : false) == false ? "未满员 取消出票" : "已满员 出票成功"%> 
                           
                            </font></h3>
                            <br />
                            <h3>发起人买：<font><%=model != null ? model.MySub : 0%> 元</font>  约占<%=model != null ? model.MySub / model.LotteryMoney*100 : 0%>%</h3>
                            <br />
                            <h3>方案倍数：<font><%=model != null ? model.LotteryMultiple : 0%>倍</font>  </h3>
                            <br />
                            <h3>方案保底：<font><%=model != null ? model.MyGua: 0%> 元</font>约占<%=model != null ? model.MyGua / model.LotteryMoney * 100 : 0%>% </h3>
                            <h4>
                                <a href="##">
                                    <img src="images/cy_013.gif" width="13" height="13" />
                                    <span class="cy_d1">
                                        <font>方案保底</font>
                                    </span>
                                </a>
                            </h4>
                            <br />
                            <h3>盈利佣金：<font><%=model != null ? model.LotteryWinMoney / model.LotteryMoney * 100 : 0%>% </font>(<%=model != null ? model.LotteryWinMoney : 0%>元)</h3>
                            <h4>
                                <a href="##">
                                    <img src="images/cy_013.gif" width="13" height="13" />
                                    <span class="cy_d1">
                                        <font>盈利佣金</font>
                                    </span>
                                </a>
                            </h4>
                        </div>
                    </div>
                </div>
                <div class="cy_vrig">
                    <div class="boutline">
                        <div class="boutlineTitle">
                            <ul id="myboutline">
                                <li class="active" onmouseover="boutlines(this,0);">投注内容</li>
                                <li class="normal" onmouseover="boutlines(this,1);">购买用户</li>
                                <li class="normal" onmouseover="boutlines(this,2);">我的购买</li>
                            </ul>
                            <h4>
                                <a href="jjjs_ssq_hemai.aspx">
                                    <img src="images/cy_010.gif" width="14" height="14" />合买奖金计算器</a>
                                    <a href="##"><img src="images/cy_011.gif" width="14" height="14" />奖级对照表</a>
                            </h4>
                        </div>
                        <div class="boutlineContent">
                            <div id="myboutline_Content0">
                                <div class="bout_cy">
                                    <div class="cy_bcokk">
                                        <h3>玩法</h3>
                                        <h4>投注内容 <%=model != null ? model.LotteryCount : 0%>注,<%=model != null ? model.LotteryMultiple : 0%>倍  </h4>
                                        <h5>
                                            <em>命中</em>
                                            <b>
                                                <a href="##">
                                                    <img src="images/cy_013.gif" width="13" height="13" />
                                                    <span class="cy_d1">
                                                        <font>命中</font>
                                                    </span>
                                                </a>
                                            </b>
                                        </h5>
                                        <h6>注数/倍数</h6>
                                        <h5>
                                            <em>税后奖金</em>
                                            <b>
                                                <a href="##">
                                                    <img src="images/cy_013.gif" width="13" height="13" />
                                                    <span class="cy_d1">
                                                        <font>税后奖金</font>
                                                    </span>
                                                </a>
                                            </b>
                                        </h5>
                                    </div>
                                    <div class="cy_bcon1">
                                        <h3>本期开奖：</h3>
                                        <ul>
                                            <%if (ballList != null)
                                              {
                                                  if (ballList.Split('+').Length == 2)
                                                  {

                                                      for (int j = 0; j < ballList.Split('+')[0].Split(',').Length; j++)
                                                      {%>
                                            <li><%=ballList.Split('+')[0].Split(',')[j]%></li>  
                                            <%}
                                                      for (int m = 0; m < ballList.Split('+')[1].Split(',').Length; m++)
                                                      {%>
                                            <li class="cred1"><%=ballList.Split('+')[1].Split(',')[m]%></li>  
                                            <%}

                                                  }
                                                  else
                                                  {
                                                      for (int j = 0; j < ballList.Split(',').Length; j++)
                                                      {%>
                                            <li><%=ballList.Split(',')[j]%></li>  
                                            <%}
                                                  }
                                              } %>
                                        </ul>
                                      <%--  <a href="##">详情</a>--%>
                                        <br />
                                        税后总奖金：<span><%=winMoney%> </span>元 
                                        (<%=winCount %>)
                                    </div>
                                    <dl>
                                    <%if ((modelLotteyNo.Split(',').Length > 1 || modelLotteyNo.Split(',')[0] != null) && modelLotteyNo.Split(',')[0].Split('*').Length>3)
                                      {
                                          for (int i = 0; i < modelLotteyNo.Split(',').Length; i++)
                                          {%>
                                        <dt>
                                            <h3>投注</h3>
                                            <h4>
                                                <b>红球：</b>
                                               
                                                <%if (modelLotteyNo.Split(',')[i].Split('+').Length > 1)
                                                  {

                                                      for (int m = 0; m < modelLotteyNo.Split(',')[i].Split('+')[0].Split('*').Length; m++)
                                                      {%>
                                                           <span><%=modelLotteyNo.Split(',')[i].Split('+')[0].Split('*')[m]%></span>
                                                     <%  
                                        }
                                                      %>
                                                        <br />
                                                <b>蓝球：</b> 
                                                 <% for (int m = 0; m < modelLotteyNo.Split(',')[i].Split('+')[1].Split('*').Length; m++)
                                                    {%>
                                                           <font><%=modelLotteyNo.Split(',')[i].Split('+')[1].Split('*')[m]%></font>
                                                     <%  
                                        }
                                                  } %>
                                            </h4>
                                            <h5>请查看历史</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>等待开奖</em></h6>
                                        </dt>
                                     <%}
                                      }
                                      else
                                      {%>
                                       
                                               
                                                <%if (modelLotteyNo.Split(',').Length > 1)
                                                   {%>
                                                   <% for(int n = 0; n < modelLotteyNo.Split(',').Length; n++)
                                                      {%><dt>
                                            <h3>投注</h3>
                                            <h4>
                                                  <b>号码：</b> 
                                                           <span><%for (int a = 0; a < modelLotteyNo.Split(',')[n].Split('*').Length; a++) {
                                                                     %>   &nbsp;&nbsp;<%= modelLotteyNo.Split(',')[n].Split('*')[a]%>
                                                                   <%}%></span>
                                            </h4>
                                            <h5>请查看历史</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>等待开奖 </em></h6>
                                                     <%  
                                                    }
                                                      %>
                                                  <% }%>
                                        </dt>
                                     <%} %>
                                    </dl>
                                    <div class="blank10">&nbsp;</div>
                                    <div class="s_fanye">
                                        
                                    </div>
                                    <div class="blank10">&nbsp;</div>
                                </div>
                            </div>
                            <div id="myboutline_Content1" class="none">
                                <div class="bout_cy">
                                    <div class="cy_bcokk">
                                        <h3>序号</h3>
                                        <h5>用户名</h5>
                                        <h5>认购时间</h5>
                                        <h5>金额/比例</h5>
                                        <h5>税后奖金</h5>
                                    </div> 
                                    <dl>
                                        <dt>
                                           <h3>序号</h3>
                                        <h5>用户名</h5>
                                        <h5>认购时间</h5>
                                        <h5>金额/比例</h5>
                                        <h5>税后奖金</h5>
                                        </dt> 
                                    </dl>
                                    <div class="blank10">&nbsp;</div>
                                    <div class="s_fanye">
                                        <div class="cy_quotes">
                                            <span class="disabled">首页</span><span class="current">1</span><a href="#?page=2">2</a><a
                                                href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a
                                                    href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a
                                                        href="#?page=2"> 10 </a> <span class="disabled">页</span>
                                        </div>
                                    </div>
                                    <div class="blank10">&nbsp;</div>
                                </div>
                            </div>
                            <div id="myboutline_Content2" class="none">
                                <div class="bout_cy">
                                    <div class="cy_bcokk">
                                        <h3>玩法</h3>
                                        <h4>投注内容 778注,3倍   查看号码</h4>
                                        <h5>
                                            <em>命中</em>
                                            <b>
                                                <a href="##">
                                                    <img src="images/cy_013.gif" width="13" height="13" />
                                                    <span class="cy_d1">
                                                        <font>命中命中命中命中命中</font>
                                                    </span>
                                                </a>
                                            </b>
                                        </h5>
                                        <h6>注数/倍数</h6>
                                        <h5>
                                            <em>税后奖金</em>
                                            <b>
                                                <a href="##">
                                                    <img src="images/cy_013.gif" width="13" height="13" />
                                                    <span class="cy_d1">
                                                        <font>税后奖金税后奖金税后奖金税后奖金税后奖金税后奖金</font>
                                                    </span>
                                                </a>
                                            </b>
                                        </h5>
                                    </div>
                                    <div class="cy_bcon1">
                                        <h3>本期开奖：</h3>
                                        <ul>
                                            <li>03</li>
                                            <li>11</li>
                                            <li>10</li>
                                            <li>29</li>
                                            <li>33</li>
                                            <li>20</li>
                                            <li class="cred1">01</li>
                                        </ul>
                                      <%--  <a href="##">详情</a>--%>
                                        <br />
                                        税后总奖金：<span>23507.40 </span>元 (一等奖 <font>1</font> 注,三等奖 <font>1</font> 注,四等奖 <font>16</font> 注,五等奖 <font>7</font> 注,六等奖 <font>23</font> 注)
                                    </div>
                                    <dl>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>05 04 15 22 27 30</span><br />
                                                <b>蓝球：</b><font>17</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>02 04 10 12 17 30</span><br />
                                                <b>蓝球：</b><font>10</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>02 04 10 12 17 30</span><br />
                                                <b>蓝球：</b><font>10</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>02 04 10 12 17 30</span><br />
                                                <b>蓝球：</b><font>10</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>02 04 10 12 17 30</span><br />
                                                <b>蓝球：</b><font>10</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                        <dt>
                                            <h3>单数</h3>
                                            <h4>
                                                <b>红球：</b>
                                                <span>02 04 10 12 17 30</span><br />
                                                <b>蓝球：</b><font>10</font>
                                            </h4>
                                            <h5>6+1</h5>
                                            <h5>1注/1倍</h5>
                                            <h6><em>4915422.4 </em>元</h6>
                                        </dt>
                                    </dl>
                                    <div class="blank10">&nbsp;</div>
                                    <div class="s_fanye">
                                        <div class="cy_quotes">
                                            <span class="disabled">首页</span><span class="current">1</span><a href="#?page=2">2</a><a
                                                href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a
                                                    href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a
                                                        href="#?page=2"> 10 </a> <span class="disabled">页</span>
                                        </div>
                                    </div>
                                    <div class="blank10">&nbsp;</div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="blank20">&nbsp;</div>
            </div>
        </div>

    </div>
    <div class="blank20">&nbsp;</div>
</asp:Content>

